package com.smart.model.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.common.PageQueryRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("动火作业请求模型")
public class HotWorkRequest extends PageQueryRequest implements Serializable {
    @ApiModelProperty("项目id")
    private Long projectId;
    @ApiModelProperty("分包单位（单位id）")
    private Long unitId;
    @ApiModelProperty("作业编号")
    private String hotWorkCode;
    @ApiModelProperty("动火部位")
    private String hotWorkPosition;
    @ApiModelProperty("动火类型 取字典表")
    private String hotWorkType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("作业时间开始时间")
    private Date hotWorkDateStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("作业结束时间")
    private Date hotWorkDateEnd;
    @ApiModelProperty("动火人（取自人员进出场记录表id）")
    private Long hotWorkPerson;
    @ApiModelProperty("看火人1（取自人员进出场记录表id）")
    private Long hotWorkLookPersonOne;
    @ApiModelProperty("看火人2（取自人员进出场记录表id）")
    private Long hotWorkLookPersonTwo;
    @ApiModelProperty("配备消防器材及防火安全措施")
    private String safetyMeasure;
    @ApiModelProperty("动火证（动火证照片链接）")
    private String hotWorkCard;
    @ApiModelProperty("作业开始时现场 （MP4格式视频链接）")
    private String startScene;
    @ApiModelProperty("作业完成时现场（MP4格式视频链接）")
    private String endScene;
    @ApiModelProperty("项目名称/编号/质量监督注册号/作业编号")
    private String projectInfo;
    @ApiModelProperty("建设地点")
    private String streetCode;
    @ApiModelProperty("施工状态")
    private String constructionStatus;
    @ApiModelProperty("建设单位id")
    private Long jiansheUnitId;
    @ApiModelProperty("动火等级")
    private String hotWorkLv;
    @ApiModelProperty("配备消防器材及防火安全措施照片(英文分号隔开)")
    private String safetyMeasurePicture;
    @ApiModelProperty("作业中现场")
    private String inScene;
    @ApiModelProperty("筛除作业数为0的项目 true：勾选状态 false：未勾选状态  默认为未勾选状态，传false")
    private Boolean exclude;

    private List<Long> projectIds;

}
